<!DOCTYPE HTML>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <title>询价单管理</title>
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="../../../ht-css/style-q.css"/>
    <link rel="stylesheet" type="text/css" href="../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <!--时间插件-->
    <link rel="stylesheet" type="text/css" href="../../../ht-css/jedate.css" />
    <link rel="stylesheet" href="../../../lib/select2-4.0.3/dist/css/select2.min.css">
    <style>

        table.dataTable thead .sorting_asc{
            background: #f4f4f4;
        }
        .inquiryOperate{
            color:#1476E5;
        }
        .goods_fanye{
            margin-top:30px;
        }
        .select2-container{
            width: 100% !important;
            float: left;
            text-align: left;
        }
    </style>
</head>

<body data-id="535">
<nav class="breadcrumb">对接平台订单管理<span class="c-gray en">&gt;</span>渠道询价单管理<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<article class="page-container">
    <div class="bg-1 bk-gray ml-20 pt-20 pb-20 clearfix mr-20">
        <form id="form-search" class="clearfix">

            <div class="clearfix">
                <div class="form-label f-l w-99 text-r lh-26" style="margin-left: 18px;">选择渠道商：</div>
                <span class="size-M f-l select_s">
                    <select id="ascription_lsit" class="select radius f-l ml-10" name="brandclass" size="1" style="width:100%; height: 30px;">
                    <script id="ascription_bob" type="text/x-dot-template">
                        <option value="" selected>全部</option>
                        {{if( it && it.length>0 ){ }}
                        {{ for(var i=0; i< it.length; i++) { }}
                        <option value="{{=it[i].customerId}}">{{=it[i].customerName}}</option></li>
                        {{ } }}
                        {{ }else{ }}
                        <option>没有数据</option>
                        {{ } }}
                    </script>
                </select>
                </span>
            </div> </br>

            <div class="clearfix">



                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="width: 68px;">询价单号：</div><span class="size-M f-l select_s">
                    <input type="text" id="inquiry_id" class="input-text radius" style="width:240px">
                </span>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="margin-left:55px;width: 68px;">客户名称：</div>
                    <span class="size-M f-l select_ph">
                        <input type="text" id="customer_name" class="input-text radius" style="width:150px">
                    </span>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4"   style="width:99px;">询价单状态：</div>
                    <span class="size-M f-l select_ph" style="display: inline-block;width:175px ">
                        <select id="inquiryStat1" class="input-text radius" style="width:140px;display:inline-block;float:left; margin-right:10px">
                            <option value="">全部</option>
                            <option value="1020">待匹配</option>
                            <option value="3040">待定价</option>
                            <option value="50">已报价</option>
                            <option value="60">已退回</option>
                            <option value="70">已撤销</option>
                        </select>
                        <select id="inquiryStat2" class="input-text radius" style="width:80px;display:inline-block;float:left;display: none;" inquiry_status1="">
                            <option value="00">全部</option>
                            <option value="01">待处理</option>
                            <option value="02">处理中</option>
                        </select>
                        <input type="hidden" value="" id="inquiry_status"/>
                    </span>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="margin-left:-27px;width: 68px;">项目名称：</div>
                    <span class="size-M f-l select_s">
                            <input type="text" id="project_name" class="input-text radius" style="width:150px" maxlength="50">
                    </span>
                </div>
            </div>
            <div class="clearfix">
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="width: 68px;">询价时间：</div>
                    <div class="f-l">
                        <input class="workinput wicon input-text radius" id="timemin" type="text" placeholder="起始时间" style="width:115px;" readonly>
                        ~
                        <input class="workinput wicon input-text radius" id="timemax" type="text" placeholder="结束时间" style="width:115px;" readonly>
                    </div>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="margin-left:9px;width: 68px;">匹配人员：</div>
                    <span class="size-M f-l select_s">
                        <input type="text" id="matching_name" class="input-text radius" style="width:150px">
                    </span>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="margin-left:-11px;width: 68px;">定价人员：</div>
                    <span class="size-M f-l select_s">
                            <input type="text" id="fix_price_name" class="input-text radius" style="width:150px">
                    </span>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="margin-left:-30px;width: 68px;">商品名称：</div>
                    <span class="size-M f-l select_s">
                            <input type="text" id="product_name" class="input-text radius" style="width:150px" maxlength="50">
                    </span>
                </div>
            </div>
            <div class="clearfix">
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="width: 68px;">收货地：</div>
                    <span class="select-box size-M radius " style="float:left;width:180px;margin-right: 10px">
                        <select id="getArea" class="select" onchange="discountdata(1)" name="receiver_province" size="1">
                        </select>
                    </span>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="margin-left:65px;width: 68px;">联系人：</div>
                    <span class="size-M f-l select_s">
                        <input type="text" id="linkman" class="input-text radius" style="width:150px">
                    </span>
                </div>
                <!--<div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="width: 67px;margin-left: -7px;">所属平台：</div>
                    <span class="size-M f-l select_s" style="display: inline-block;width:100px ">
                        <select class="input-text radius" name="brandclass" size="1" id="platform">
                        <option value="1020">全部</option>
                        <option value="10">签约平台</option>
                        <option value="20">普通平台</option>
                        </select>
                    </span>
                </div>-->
            </div>
            <div class="text-c mb-10">
                <input type="button" id="addBtn" class="btn btn-secondary radius size-S powerButton 625" value="新&nbsp;&nbsp;增">
                <input type="submit" id="submitBtn" class="btn btn-secondary radius size-S powerButton 615" value="查&nbsp;&nbsp;询">
                <input type="reset" id="resetBtn" class="btn btn-secondary radius size-S powerButton 615" value="重&nbsp;&nbsp;置" style="line-height: 1">
            </div>
        </form>
        <div style="overflow: auto">
            <table style="width:100%;" class="table table-border table-bg table-hover table-sort mt-10" id="datatable">
                <thead>
                <tr class="text-c">
                    <th width="135">询价单号</th>
                    <th width="75">所属渠道</th>
                    <th width="115">客户名称</th>
                    <th width="70">联系人</th>
                    <th width="70">收货地</th>
                    <th width="90"><span  style="position:relative">询价时间
                        <!--<a href="javascript:void(0);" id="sortByCreatedTime" class="sortByCreatedTime">
                            <img src="../../../img/copyup.png" alt="" style="position: absolute;top:2px"></a>--></span>
                    </th>
                    <!-- <th width="100">要求到货时间</th>-->
                    <th width="70" >
                        <span style="position:relative">询价数量<!--<a href="javascript:void(0);" id="sortByAllNumber" class="sortByAllNumber">
                            <img src="../../../img/downorder.png" alt="" style="position: absolute;top:2px"></a>--></span>

                    </th>
                    <th width="70">报价数量</th>
                    <th width="70">匹配人员</th>
                    <th width="100">处理时间</th>
                    <th width="70">定价人员</th>
                    <th width="100">处理时间</th>
                    <th width="100">询价状态</th>
                    <th width="135">操作</th>
                </tr>
                </thead>
                <tbody id="orderList" class="shun">
                </tbody>
            </table>
            <div class="dataTables_wrapper goods_fanye clearfix mt-5">
                <div class="f-r pageturning M-box3"></div>
            </div>
        </div>
    </div>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--时间组件-->
<script type="text/javascript" src="../../../lib/jquery.jedate.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--引入分页-->
<link rel="stylesheet" href="../../../lib/pagination/pagination.css">
<script src="../../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../ht-js/frame/doT.min.js?rev=@@hash"></script>
<!--页面JS-->
<script src="../../../ht-js/dockingplatform/channelorder/InquiryListManage.js?rev=@@hash"></script>
<!--权限控制-->
<script type="text/javascript" src="../../../ht-js/power.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/select2-4.0.3/dist/js/select2.full.min.js"></script>
<script>
    $(function () {
        function timeSet(startEl,endEl,timeFormat){
            /*startEl=>开始时间Input的id，endEl=>结束时间Input的id，时间格式（YYYY-MM-DD hh:mm:ss  YYYY年MM月DD日 hh:mm:ss）*/
            /*时间设置*/
            var thisMaxTime = $.nowDate().substring(0,$.nowDate().length-8)+"23:59:59";
            var start = {
                format: timeFormat,
                maxDate: thisMaxTime,
                okfun: function(obj){
                    end.minDate = obj.val.substring(0,obj.val.length-5)+"00:00:00"; //开始日选好后，重置结束日的最小日期
                }
            };
            var end = {
                format: timeFormat,
                maxDate: thisMaxTime,
                okfun: function(obj){
                    start.maxDate = obj.val.substring(0,obj.val.length-5)+"23:59:59"; //将结束日的初始值设定为开始日的最大日期
                }
            };
            $.jeDate(startEl,start);
            $.jeDate(endEl,end);
        }
        timeSet("#timemin","#timemax","YYYY-MM-DD hh:mm");
        $('#ascription_lsit').select2({});
    })
</script>
</body>
</html>